# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwpe
pkgver=1.14.1
pkgrel=1
pkgdesc="General-purpose library specifically developed for the WPE-flavored port of WebKit"
url="https://wpewebkit.org/"
arch="all"
license="BSD-2-Clause"
makedepends="mesa-dev meson libxkbcommon-dev"
options="!check" # no tests
subpackages="$pkgname-dbg $pkgname-dev"
source="https://github.com/WebPlatformForEmbedded/libwpe/releases/download/$pkgver/libwpe-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
302f5e795c1d3c927f583eea8f52a1e764ce4d610b8021dc6cd6fd672331bf5999388c0d3f4bda2fa2096385beda2fe399f18b6d8d31bddb18c5a4aae87b2e35  libwpe-1.14.1.tar.xz
"
